#define _CRT_SECURE_NO_WARNINGS
#include"Stack.h"

void StackInit(struct Stack* pst, int defaultCapacity)
{
	pst->a = (int*)malloc(sizeof(int) * defaultCapacity);
	if (pst->a == NULL)
	{
		perror("malloc fail");
		return;
	}

	pst->top = 0;
	pst->capacity = defaultCapacity;
}

//void StackPush(struct Stack* pst, int x)
//{
//	printf("void StackPush(struct Stack* pst, int x)");
//}
//
//void StackPush(struct Stack* pst, double x)
//{
//	printf("void StackPush(struct Stack* pst, double x)");
//
//}